#include "head.h"
void change_first(Node *phead_F){
	Node *p = phead_F->next;
	p->data = intput_F();
	return;
}

void change_late(Node *phead_F){
	Node *p = phead_F->next;
	while(p->next){
		p = p->next;
	}
	p->data = intput_F();
	return;
}

void change(Node *phead_F, char *str){
	Node *p = phead_F->next;
	while(p){
		Faculty *s = (Faculty*)malloc(sizeof(Faculty));
		s = (Faculty*)p->data;
		if(strcmp(str, s->name) == 0){
			p->data = intput_F();
			change_late(phead_F);
            printf("修改成功！\n");
			return; 
		}
		p = p->next;
	}
	printf("修改失败!\n"); 
	return;
}